<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $guarded = ['_token', '_method'];

    public function extension()
    {
        return $this->belongsTo(User::class,'extension_id');
    }

    public function dealer()
    {
        return $this->belongsTo(User::class,'dealer_id');
    }

    public function user_article()
    {
        return $this->hasMany(UserArticle::class,'uid');
    }
}
